<template>
	<view class="wrap">
		<u-gap height="20" bg-color="#f5f5f5"></u-gap>
    <div style="padding:8px">
      <u-input v-model="log" :type="'textarea'" :border="true" :auto-height="true" :clearable="false" :maxlength="9999999999" />
    </div>
	</view>
</template>

<script>
import { saveLog, queryLog, clearLog } from './debug.vue'

export default {
	data() {
		return {
			log: ''
		}
	},

  onShow () {
    this.showLog()
  },

	methods: {
    showLog () {
      queryLog().then((res) => {
        this.log = JSON.stringify(res.data, null, ' ')
      })
    }
	}
}
</script>
<style lang="scss">
@import '../home/index.scss';
page {
	background-color: #fff;
}
.wrap {
  /deep/.u-switch {
    top: 6px;
  }
}
.footer-fixed {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px;
  background: #fff;
  border-top: 1px #ebeef5 solid;
  z-index: 9;
}
.btn-submit {
  width: 100%;
}
</style>
